var arr = [12,34,32,89,4];
var result = Math.min(...arr);
console.log('result:',result);